package cn.com.guage.linked;

public class LinkedReverse {

	public LinkedReverse() {
	}

	public static void main(String[] args) {

	}

	class Node {
		private Node next;
		private int key;
		private String value;

		public Node(Node next, int key, String value) {
			super();
			this.next = next;
			this.key = key;
			this.value = value;
		}

		public Node(int key, String value) {
			super();
			this.key = key;
			this.value = value;
		}

		public Node put(Node root, int key, String value) {
			if(root == null) {
				root = new Node(key, value);
			}else {
				 put(root, key, value);
			}
			return root;
		}
	}

}
